package com.hsj;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName MyApplication
 * @Description: TODO
 * @Author hsj
 * @Date 2020/5/17
 * @Version V1.0
 **/
public class MyApplication {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		Hello hello = (Hello)ac.getBean("hello");
		hello.sayHello();
		ac.close();
	}
}
